using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Collections;
using System.Data;
using System.ComponentModel;
using System.Data.OracleClient;
using WPFExcelReport.Helpers;
using WPFExcelReport.Controls;
namespace WPFExcelReport
{
   public partial class VICC_MAXORD
    {
      #region======ColumnSchema==========
       /*
                public double ID { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["ID"].ToString()); } set { if (dwMaster == null) return; dwMaster["ID"] = value; OnPropertyChanged("ID", value); } } //lENGth 0
                public string MAXORD { get { if (dwMaster == null) return ""; return dwMaster["MAXORD"].ToString(); } set { if (dwMaster == null) return; dwMaster["MAXORD"] = value; OnPropertyChanged("MAXORD", value); } } //lENGth 6
                public double USD2RMB { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["USD2RMB"].ToString()); } set { if (dwMaster == null) return; dwMaster["USD2RMB"] = value; OnPropertyChanged("USD2RMB", value); } } //lENGth 0
                public double RATE1 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["RATE1"].ToString()); } set { if (dwMaster == null) return; dwMaster["RATE1"] = value; OnPropertyChanged("RATE1", value); } } //lENGth 0
       */
       #endregion
    } 
       public partial class UIICC_MAXORD
    {
      
        #region======ColumnSchema==========
       /*
       #region ==ID===========
        public static readonly DependencyProperty IDProperty = DependencyProperty.Register("ID",
            typeof(string), typeof(UIICC_MAXORD),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnIDChanged));
        public string ID
        {
            get
            {
                return (string)GetValue(IDProperty);
            }
            set
            {
                SetValue(IDProperty, value);
                OnIDChg();
            }
        }
        private static void OnIDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_MAXORD;
            if (src != null)
            {
                src.ID = (string)e.NewValue;
            }
        }
        public virtual void OnIDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.ID=ID;
        }
         #endregion
       #region ==MAXORD===========
        public static readonly DependencyProperty MAXORDProperty = DependencyProperty.Register("MAXORD",
            typeof(string), typeof(UIICC_MAXORD),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnMAXORDChanged));
        public string MAXORD
        {
            get
            {
                return (string)GetValue(MAXORDProperty);
            }
            set
            {
                SetValue(MAXORDProperty, value);
                OnMAXORDChg();
            }
        }
        private static void OnMAXORDChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_MAXORD;
            if (src != null)
            {
                src.MAXORD = (string)e.NewValue;
            }
        }
        public virtual void OnMAXORDChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.MAXORD=MAXORD;
        }
         #endregion
       #region ==USD2RMB===========
        public static readonly DependencyProperty USD2RMBProperty = DependencyProperty.Register("USD2RMB",
            typeof(string), typeof(UIICC_MAXORD),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnUSD2RMBChanged));
        public string USD2RMB
        {
            get
            {
                return (string)GetValue(USD2RMBProperty);
            }
            set
            {
                SetValue(USD2RMBProperty, value);
                OnUSD2RMBChg();
            }
        }
        private static void OnUSD2RMBChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_MAXORD;
            if (src != null)
            {
                src.USD2RMB = (string)e.NewValue;
            }
        }
        public virtual void OnUSD2RMBChg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.USD2RMB=USD2RMB;
        }
         #endregion
       #region ==RATE1===========
        public static readonly DependencyProperty RATE1Property = DependencyProperty.Register("RATE1",
            typeof(string), typeof(UIICC_MAXORD),
            new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnRATE1Changed));
        public string RATE1
        {
            get
            {
                return (string)GetValue(RATE1Property);
            }
            set
            {
                SetValue(RATE1Property, value);
                OnRATE1Chg();
            }
        }
        private static void OnRATE1Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIICC_MAXORD;
            if (src != null)
            {
                src.RATE1 = (string)e.NewValue;
            }
        }
        public virtual void OnRATE1Chg()
        { 
        if(!IsEdit)
        return;
        if(dwMaster==null)
        return;
        TMV.RATE1=RATE1;
        }
         #endregion
       */
       
       #endregion
    } 
}
